From 29c73e82652acd93847c3cd0ca34b095fd2116ef Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 31 May 2008 08:54:45 +0000 Subject: [PATCH] Add wpSkipCookieCheck to allow bots to skip the cookie check --- includes/SpecialUserlogin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 58b1280f18..70323f21df 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -36,7 +36,7 @@ class LoginForm { var $mName, $mPassword, $mRetype, $mReturnTo, $mCookieCheck, $mPosted; var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword; - var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage; + var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage, $mSkipCookieCheck; /** * Constructor @@ -63,6 +63,7 @@ class LoginForm { $this->mAction = $request->getVal( 'action' ); $this->mRemember = $request->getCheck( 'wpRemember' ); $this->mLanguage = $request->getText( 'uselang' ); + $this->mSkipCookieCheck = $request->getCheck( 'wpSkipCookieCheck' ); if( $wgEnableEmail ) { $this->mEmail = $request->getText( 'wpEmail' ); @@ -501,7 +502,7 @@ class LoginForm { } $wgUser->setCookies(); - if( $this->hasSessionCookie() ) { + if( $this->hasSessionCookie() || $this->mSkipCookieCheck ) { /* Replace the language object to provide user interface in correct * language immediately on this first page load. */ -- 2.20.1